<?php
echo '	function omnipotent($field, $value, $fieldinfo) {
		extract($fieldinfo);
		$formtext = str_replace(\'{FIELD_VALUE}\',$value,$formtext);
		$formtext = str_replace(\'{MODELID}\',$this->modelid,$formtext);
		$id  = $this->id ? $this->id : 0;
		$formtext = str_replace(\'{ID}\',$id,$formtext);
		$errortips = $this->fields[$field][\'errortips\'];
		if($errortips && $this->fields[$field][\'isbase\']) $this->formValidator .= \'$("#\'.$field.\'").formValidator({onshow:"\'.$errortips.\'",onfocus:"\'.$errortips.\'"}).inputValidator({min:1,onerror:"\'.$errortips.\'"});\';
		return $formtext;
	}

?>